import request from '@/utils/request'

export function insert (data) {
    return request({
        url: '/api/server/sysActivityManagement/insert',
        method: 'post',
        data
    })
}

export function update (data) {
    return request({
        url: '/api/server/sysActivityManagement/update',
        method: 'post',
        data
    })
}

export function queryByPage (data) {
    return request({
        url: '/api/server/sysActivityManagement/queryByPage',
        method: 'post',
        data
    })
}

export function deleteById (data) {
    return request({
        url: '/api/server/sysActivityManagement/deleteById',
        method: 'get',
        params:data
    })
}

export function queryActivityQuestionRelation (data) {
    return request({
        url: '/api/server/sysActivityQuestionRelation/queryByPage',
        method: 'post',
        data
    })
}

export function insertBatch (data) {
    return request({
        url: '/api/server/sysActivityQuestionRelation/insertBatch',
        method: 'post',
        data
    })
}

export function delActivityQuestionRelation (data) {
    return request({
        url: '/api/server/sysActivityQuestionRelation/deleteById',
        method: 'get',
        params:data
    })
}

